package com.xgzit.xgzmall.product.feign;

import com.xgzit.common.dto.es.SkuEsModel;
import com.xgzit.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Author xgz
 * @Date 2021-04-15 20:18
 */

@FeignClient("xgzmall-search")
public interface SearchFeignService {

    /**
    * 远程调用 search服务 上架商品
    * @param skuEsModels:
    * @return com.xgzit.common.utils.R
    */
    @PostMapping("/search/product")
    R productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);
}
